import i18n from '@src/locales';
import FormRelatedCustomersSetting from './FormRelatedCustomersSetting.vue';
import FormRelatedCustomersPreview from './FormRelatedCustomersPreview.vue';

import FormRelatedCustomers from './FormRelatedCustomers.vue';

// import customersExtendSearch from './extend/customersExtendSearch.vue';
import CustomerNameExtendSearch from '../FormText/extend/CustomerNameExtendSearch.vue';
// import customersExtendSearch from '../customersExtendSearch.vue';

let FormRelatedCustomersField = {
  formType: 'related_customers', // 字段类型
  name: i18n.t('common.form.type.related_customers'),
  isSystem: 0,
  previewIcon: 'icon-fdn-related_task',
  component: {
    setting: FormRelatedCustomersSetting,
    preview: FormRelatedCustomersPreview,
    build: FormRelatedCustomers,
    extend: {
      'related_customers_search': CustomerNameExtendSearch
    }
  }
};

export default FormRelatedCustomersField;
